package com.j2data.spike.config;

import com.j2data.spike.pojo.User;

/**
 * @author j2data
 * @version 1.0
 */
public class UserContext {
    private static ThreadLocal<User> userThreadLocal = new ThreadLocal<User>();


    public static void serUSer(User user){
        userThreadLocal.set(user);
    }
    public static User getUser(){
        return userThreadLocal.get();
    }
}
